<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__ADMIN__/css/pintuer.css">
    <link rel="stylesheet" href="__ADMIN__/css/admin.css">
    <script src="__ADMIN__/js/jquery.js"></script>
    <script src="__ADMIN__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改首页菜单信息</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="{:url('admin/menu/edi')}">
            {if condition="$data.id == null "}
                <input type="hidden" name="menu_id" value="{$data.menu_id}" />
                <div class="form-group">
                <div class="label">
                    <label>菜单名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="menu_name" value="{$data.menu_name}" data-validate="required:请输入导航名称" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>菜单链接：</label>
                </div>
                <div class="field">
                    <input type="text"  class="input w50" name="link" value="{$data.link}" placeholder="index/index/index"/>
                    <div class="tips"></div>

                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>菜单级别：</label>
                </div>
                <div class="field">
                        <select name="level" >
                            {volist name="menus" id="vo"}
                                
                                <option value="{$vo.menu_id}_{$vo.level}" {if condition="$vo.menu_name eq $data.menu_name"}selected{/if}>{$vo.menu_name}</option>
                                
                            {/volist}

                        </select>
                        <span style="color:red">(一级菜单不可修改级别，二级菜单可修改到一级菜单)</span>
                    </div>
                </div>
            <div class="form-group">
                <div class="label">
                    <label>导航排序：</label>
                </div>
                <div class="field">
                    <input type="number" class="input w50" name="sort" value="{$data.sort}" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>导航状态：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                         应用 <input name="is_show"  type="radio" name="is_show" value="1" {if condition="$data.is_show eq 1"}checked{/if}/>
                        禁用 <input name="is_show"  type="radio" name="is_show" value="2" {if condition="$data.is_show eq 2"}checked{/if}/>
                </div>
            </div>
            {else /}
                <input type="hidden" name="id" value="{$data.id}" />
                <div class="form-group">
                <div class="label">
                    <label>菜单名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="menu_name" value="{$data.two_menu}" data-validate="required:请输入导航名称" />
                    <div class="tips"></div>
                </div>
            </div>
             <div class="form-group">
                <div class="label">
                    <label>菜单级别：</label>
                </div>
               <div class="field">
                        <select name="level" >
                            {volist name="menus" id="vo"}
                                
                                <option value="{$vo.menu_id}_{$vo.level}"  {if condition="$vo.menu_id eq $data.menu_id"}selected{/if}>{$vo.menu_name}</option>
                                
                            {/volist}

                        </select>
                        <span style="color:red">(一级菜单不可修改级别，二级菜单可修改到一级菜单)</span>
                    </div>
                </div>
                
            <div class="form-group">
                <div class="label">
                    <label>导航排序：</label>
                </div>
                <div class="field">
                    <input type="number" class="input w50" name="menusort" value="{$data.menusort}" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>导航状态：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                         应用 <input name="is_show"  type="radio" name="is_show" value="1" {if condition="$data.is_show eq 1"}checked{/if}/>
                        禁用 <input name="is_show"  type="radio" name="is_show" value="2" {if condition="$data.is_show eq 2"}checked{/if}/>
                </div>
            </div>
            {/if}
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body></html>